package com.yingsheng.bi.hks.feign.client;

import com.yingsheng.bi.hks.basic.FeignConst;
import com.yingsheng.bi.hks.dto.shops.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 店铺管理
 * 店铺是线上虚拟商店
 */
@FeignClient(contextId = FeignConst.HKS_SHOPS, name = FeignConst.SERVICE_NAME)
@Api(tags = "店铺管理", value = "店铺管理")
public interface ShopsFeignClient {

    @ApiOperation(value = " 店铺信息新增")
    @RequestMapping(value = "/shopsMgmt/shopsAdd")
    ShopsAddRes add(@RequestBody ShopsAddReq req);

    @ApiOperation(value = " 店铺信息修改")
    @RequestMapping(value = "/shopsMgmt/shopsMod")
    ShopsModRes mod(@RequestBody ShopsModReq req);

    @ApiOperation(value = "店铺信息查询")
    @RequestMapping(value = "/shopsMgmt/shopsQry")
    ShopsQryRes qry(@RequestBody ShopsQryReq req);

    @ApiOperation(value = " 店铺信息删除")
    @RequestMapping(value = "/shopsMgmt/shopsDel")
    ShopsDelRes del(@RequestBody ShopsDelReq req);
}
